
//把文件按照二进制进行读取
export function readFile(file){
  return new Promise(resolve =>{
    let reader =new FileReader();
    reader.readAsBinaryString(file);
    reader.onload =ev => {
      resolve(ev.target.result);
    }
  } )
}
